package service;

import URL.Constants;
import bean.Lsjt;
import bean.Lst;
import com.alibaba.fastjson.JSONObject;
import requerst.HttpUt;

import java.util.List;

public class LsjtService {
/**
 * @author: dae
 * @email: 675116529@qq.com
 * @phone: 15270029507
 * @DateTime: 2021/12/7 20:39
 *
 * @return*/
public List<Lsjt> getLsjt(){
    String url = Constants.Ls_url
            + "?key=" + Constants.Ls_key
            + "&date= "+Constants.da
            ;
    String result =  HttpUt.get(url);
    //System.out.println(result);
    //json解析
     Lst lst= JSONObject.parseObject(result, Lst.class );
    return  lst.result;


}
}
